package cn.classg.rabbitmq.context;

import cn.classg.rabbitmq.mq.MqCallbackTaskDecorator;

/**
 * @author CLASSG
 */
public class MqBlankTaskDecorator implements MqCallbackTaskDecorator {
    @Override
    public Runnable decorate(Runnable runnable) {
        return ()-> {
            try {
                runnable.run();
                Thread.sleep(0);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        };
    }
}
